package com.my.bean;

import cn.hutool.core.bean.BeanUtil;

import java.util.List;

/**
 * @author: marshal
 * @date: 2022-09-27 10:05
 */
public class BeanTest {
    public static void main(String[] args) {
        List< A.B> bList = List.of( new A.B(1, "b1"),  new A.B(2, "b2"));
        A a = new A(1, "A", bList);
        System.out.println(a);
        System.out.println(BeanUtil.beanToMap(a));

    }
}
